//导航下拉菜单
$("#b2").hover(function() {
	$("#menu").css("display", "block");
}, function() {
	$("#menu").css("display", "none");
});
$("#menu").hover(function() {
	$("#menu").css("display", "block");
}, function() {
	$("#menu").css("display", "none");
});
//二维码
$("#weixin").hover(function() {
	$("#code").css("display", "block");
}, function() {
	$("#code").css("display", "none");
});
$("#pic1").on("click", function() {
	window.open("http://www.subway.com.cn/images/uploadImg/2016040117224114977a.png");
});
$("#pic2").on("click", function() {
	window.open("http://www.subway.com.cn/images/uploadImg/201612191444322d3b38.jpg");
});
//页面切换
$("#pagingDevice :nth-child(1)").click(function(){
	$("#title1").css("display","block");
	$("#title").css("display","none");
	$("#title2").css("display","none");
	$("#title3").css("display","none");
	$("#title4").css("display","none");
});
$("#pagingDevice :nth-child(2)").click(function(){
	$("#title2").css("display","block");
	$("#title").css("display","none");
	$("#title1").css("display","none");
	$("#title3").css("display","none");
	$("#title4").css("display","none");
});
$("#pagingDevice :nth-child(3)").click(function(){
	$("#title3").css("display","block");
	$("#title").css("display","none");
	$("#title2").css("display","none");
	$("#title1").css("display","none");
	$("#title4").css("display","none");
});
$("#pagingDevice :nth-child(4)").click(function(){
	$("#title4").css("display","block");
	$("#title").css("display","none");
	$("#title2").css("display","none");
	$("#title3").css("display","none");
	$("#title1").css("display","none");
});
